package com.xjscrm.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.console.entity.WwCorp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mingyang.chen create in 2024/5/6 18:50
 */
@Mapper
public interface WwCorpMapper extends CommonMapper<WwCorp> {

    int deleteByPrimaryKey(Long id);

    int insertSelective(WwCorp record);

    WwCorp selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(WwCorp record);

    List<WwCorp> selectPage(Page<WwCorp> page, @Param("param") WwCorp param);

    List<WwCorp> getByMerId(Long merId);

    WwCorp getByCorpId(@Param("corpId") String corpId, @Param("merId") Long merId);

    List<WwCorp> selectByMerId(@Param("merId") Long merId);

    WwCorp selectByCorpId(@Param("corpId") Long corpId, @Param("merId") Long merId);
}